﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Agro.Services {
    public interface ILogonService {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <param name="type">用户所在单位的类型，是管理部门，还是企业，0：管理部门，1企业</param>
        /// <param name="msg"></param>
        /// <returns></returns>
        bool UserLogon(string userName, string password, string type, out string msg);
        /// <summary>
        /// 登出
        /// </summary>
        void Logout();
    }
}
